var postId;
/**
* 页面跳转
* @param current 当前页
* @param move 翻页码的动作
* @return
*/
function pageJump(current, move){

	var count = document.getElementById("countPage").value;
	var endPage = document.getElementById("lastpage").value;

	if(move != 0){
		current = document.getElementById("currentPage").value;
	}

	var html = "forum-postlist.html?move="+move+"&page.currentPage="+current+"&page.countPage="
			+count+"&endPage="+endPage;
	location.href=html;
}

function deletePost(id){
	postId = id;
	$( "#dialog-confirm" ).dialog( "open" );
}

function sure(){
	var topicId = document.getElementById("topicId").value;
	location.href='forum-deletePost.html?postId=' + postId + "&topicId=" + topicId;
}